//package com.wxq.product.interceptor;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @author Jim
// * @date 9:06 下午 2022/4/6
// * @description
// * @email:huwmz04153277@126.com
// */
//@Configuration
//public class MyMvcConfig implements WebMvcConfigurer {
//    public static MyInterceptor myInterceptor = new MyInterceptor();
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        InterceptorRegistration interceptor = registry.addInterceptor(myInterceptor);
//        interceptor.addPathPatterns("/**");
//        interceptor.excludePathPatterns("/");
//        interceptor.excludePathPatterns("/product/attr/change");
//    }
//}
